<?php

/*
 *	Do not change!
 *	For native and sexy errors reporting
 *
 *	To change error reporting, see application's configuration
 */
ini_set('display_errors', false);

error_reporting(false);

/*
 *	Bind warnings and notices
 */
set_error_handler(create_function('$c, $m, $f, $l', 'new \Nano\Trap\Errors($m, $c, $f, $l);'));

/*
 *	Bind exceptions
 */
set_exception_handler(create_function('$e', 'new \Nano\Trap\Exceptions($e);'));

/*
 *	Bind parse errors
 */
register_shutdown_function(create_function(null, 'new \Nano\Trap\Shutdowns();'));